package com.jt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sound.midi.Soundbank;

@RestController
@PropertySource(value="classpath:/properties\\hello.properties",encoding="utf-8")
public class HelloController{

 @Value("${jd.m}")
 private String msg;
 @Value("${jt.msg}")
 private String msg2;
 
 @GetMapping("/hello")
 public String hello(){
  return msg+" "+msg2;
 }
}
